package model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Rating {
	private int id;
	private double stars;
	private Movie movie;
	
	public Rating(){}
	
	
	
	public Rating(int id, double stars, Movie movie) {
		this.id = id;
		this.stars = stars;
		this.movie = movie;
	}
	
	@XmlAttribute
	public int getId() {
		return id;
	}

	@XmlElement
	public double getStars() {
		return stars;
	}
	
	@XmlElement
	public Movie getMovie() {
		return movie;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setStars(double stars) {
		this.stars = stars;
	}

	public void setMovie(Movie movie) {
		this.movie = movie;
	}
}
